package com.hisense.hiioc.hismartplate.service;

import com.hisense.hiioc.hismartplate.base.BaseService;
import com.hisense.hiioc.hismartplate.entity.table.DeviceStateEntity;
import com.hisense.hiioc.hismartplate.mapper.DeviceStateMapper;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * @Author: almo
 * @Date: 2018/12/5 下午12:48
 * @Version 1.0
 */
@Service
public class DeviceStateService extends BaseService<DeviceStateEntity, DeviceStateMapper> {

    public int saveDeviceState(DeviceStateEntity entity) {
        int res = mapper.saveDeviceState(entity);
        return res;
    }

    public List<DeviceStateEntity> getDeviceAllStates() {
        return mapper.getDeviceAllStates();
    }

}
